package p11;

/**
 * @author krystal
 * @date 2022/11/13 11:10
 */
public class Demo1 {
    public static void main(String[] args) {
        try{
            int[] array=null;
            System.out.println(array.length);
        }catch (NullPointerException e){
            System.out.println("捕获到了一个空指针异常！");
        }
    }
}
